﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Rebar;

namespace BankSimulation
{
    static class GlobalVar
    {
        //当前登录的账号密码以及账户信息和当前使用的ATM,是全局变量
        public static string idCurrent = "";
        public static string pwdCurrent = "";
        public static CreditAccount accountCurrent;
        public static bool isSignIn;//是否登录
        public static Random random = new Random();
        //银行bank1
        public static CreditBank bank1 = new CreditBank();
        //当前ATM是银行bank1的ATM
        public static ATM atmCurrent = new ATM(bank1);
    }
}
